/*CodeBuilder v1.0.4 by 2021/1/22 23:57:36 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Sys_PrintConfig : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private System.String _ClientId;
		/// <summary>
		/// 客户端Id，非本地化配置为0(默认)
		/// </summary>
		[Entity(CNClientId, 1, true)]
		public System.String ClientId
		{
			get { return _ClientId; }
			set
			{
				if (!OnPropertyChanged(CNClientId, _ClientId, value)) return;
				_ClientId = value;
				SetFieldChanged(CNClientId) ;
			}
		}

		private System.String _FormName;
		/// <summary>
		/// 打印的窗体的包含程序集的名称
		/// </summary>
		[Entity(CNFormName, 2, true)]
		public System.String FormName
		{
			get { return _FormName; }
			set
			{
				if (!OnPropertyChanged(CNFormName, _FormName, value)) return;
				_FormName = value;
				SetFieldChanged(CNFormName) ;
			}
		}

		private System.Int32 _PrintIndex;
		/// <summary>
		/// 一个form下有多个时打印时，打印时传参区分
		/// </summary>
		[Entity(CNPrintIndex, 3, true)]
		public System.Int32 PrintIndex
		{
			get { return _PrintIndex; }
			set
			{
				if (!OnPropertyChanged(CNPrintIndex, _PrintIndex, value)) return;
				_PrintIndex = value;
				SetFieldChanged(CNPrintIndex) ;
			}
		}

		private System.String _Caption;
		/// <summary>
		/// Caption
		/// </summary>
		[Entity(CNCaption, 4, true)]
		public System.String Caption
		{
			get { return _Caption; }
			set
			{
				if (!OnPropertyChanged(CNCaption, _Caption, value)) return;
				_Caption = value;
				SetFieldChanged(CNCaption) ;
			}
		}

		private System.String _TemplateFile;
		/// <summary>
		/// TemplateFile
		/// </summary>
		[Entity(CNTemplateFile, 5, true)]
		public System.String TemplateFile
		{
			get { return _TemplateFile; }
			set
			{
				if (!OnPropertyChanged(CNTemplateFile, _TemplateFile, value)) return;
				_TemplateFile = value;
				SetFieldChanged(CNTemplateFile) ;
			}
		}

		private System.Boolean _IsPreview;
		/// <summary>
		/// 是否预览，默认为true
		/// </summary>
		[Entity(CNIsPreview, 6, true)]
		public System.Boolean IsPreview
		{
			get { return _IsPreview; }
			set
			{
				if (!OnPropertyChanged(CNIsPreview, _IsPreview, value)) return;
				_IsPreview = value;
				SetFieldChanged(CNIsPreview) ;
			}
		}

		private System.Boolean _ShowPrintDialog;
		/// <summary>
		/// 直接打印时是否显示打印对话框
		/// </summary>
		[Entity(CNShowPrintDialog, 7, true)]
		public System.Boolean ShowPrintDialog
		{
			get { return _ShowPrintDialog; }
			set
			{
				if (!OnPropertyChanged(CNShowPrintDialog, _ShowPrintDialog, value)) return;
				_ShowPrintDialog = value;
				SetFieldChanged(CNShowPrintDialog) ;
			}
		}

		private System.String _PrinterName;
		/// <summary>
		/// 打印机名称
		/// </summary>
		[Entity(CNPrinterName, 8)]
		public System.String PrinterName
		{
			get { return _PrinterName; }
			set
			{
				if (!OnPropertyChanged(CNPrinterName, _PrinterName, value)) return;
				_PrinterName = value;
				SetFieldChanged(CNPrinterName) ;
			}
		}

		private System.Boolean _IsConfirm;
		/// <summary>
		/// 直接打印时是否需要确认
		/// </summary>
		[Entity(CNIsConfirm, 9, true)]
		public System.Boolean IsConfirm
		{
			get { return _IsConfirm; }
			set
			{
				if (!OnPropertyChanged(CNIsConfirm, _IsConfirm, value)) return;
				_IsConfirm = value;
				SetFieldChanged(CNIsConfirm) ;
			}
		}

		private System.Boolean _IsLocal;
		/// <summary>
		/// 是否客户端本地配置，使用ClientId区分
		/// </summary>
		[Entity(CNIsLocal, 10, true)]
		public System.Boolean IsLocal
		{
			get { return _IsLocal; }
			set
			{
				if (!OnPropertyChanged(CNIsLocal, _IsLocal, value)) return;
				_IsLocal = value;
				SetFieldChanged(CNIsLocal) ;
			}
		}

		private System.Boolean _IsUse;
		/// <summary>
		/// IsUse
		/// </summary>
		[Entity(CNIsUse, 11, true)]
		public System.Boolean IsUse
		{
			get { return _IsUse; }
			set
			{
				if (!OnPropertyChanged(CNIsUse, _IsUse, value)) return;
				_IsUse = value;
				SetFieldChanged(CNIsUse) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 12)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(CNAddTime, 13, true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(CNAddUserId, 14)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				if (!OnPropertyChanged(CNAddUserId, _AddUserId, value)) return;
				_AddUserId = value;
				SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(CNAddHost, 15)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				if (!OnPropertyChanged(CNAddHost, _AddHost, value)) return;
				_AddHost = value;
				SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(CNLastTime, 16)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				if (!OnPropertyChanged(CNLastTime, _LastTime, value)) return;
				_LastTime = value;
				SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(CNLastHost, 17)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				if (!OnPropertyChanged(CNLastHost, _LastHost, value)) return;
				_LastHost = value;
				SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _LastUserId;
		/// <summary>
		/// LastUserId
		/// </summary>
		[Entity(CNLastUserId, 18)]
		public System.String LastUserId
		{
			get { return _LastUserId; }
			set
			{
				if (!OnPropertyChanged(CNLastUserId, _LastUserId, value)) return;
				_LastUserId = value;
				SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNClientId = "ClientId";
		public const string CNFormName = "FormName";
		public const string CNPrintIndex = "PrintIndex";
		public const string CNCaption = "Caption";
		public const string CNTemplateFile = "TemplateFile";
		public const string CNIsPreview = "IsPreview";
		public const string CNShowPrintDialog = "ShowPrintDialog";
		public const string CNPrinterName = "PrinterName";
		public const string CNIsConfirm = "IsConfirm";
		public const string CNIsLocal = "IsLocal";
		public const string CNIsUse = "IsUse";
		public const string CNRemark = "Remark";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
